from typing import  Dict
from src.LogPlayer.entity.Frame import Frame

class Renderer:
    callables: Dict[int, callable] = {}

    def registerRenderers(self, type: int, callback: callable):
        self.callables[type] = callback

    def render(self, frame: Frame):
        for callback in self.callables.values():
            callback(frame)